// created by JCOMGen
// from TypeLib at C:\PROGRA~1\MULTIB~1\BMO.ocx
// check for latest version at http://www.simtel.net

package il.co.fibi.bmo.BMOLib;

import com.develop.jawin.*;
import com.develop.jawin.constants.*;
import com.develop.jawin.marshal.*;
import com.develop.io.*;
import java.io.*;

public class _DBMO extends DispatchPtr {
    public int getTypeInfoToken() {
        return 0;
    }

    static public final GUID proxyIID = new GUID("{989B0BA6-9EC9-11D4-B62E-0080AD7F9F85}");

    static public final int iidToken;

    static {
        iidToken = IdentityManager.registerProxy(proxyIID, _DBMO.class);
    }

    public int getGuidToken() {
        return iidToken;
    }

    public _DBMO() throws COMException {
        super();
    }
    public _DBMO(String progid) throws COMException {
        super(progid);
    }
    public _DBMO(IUnknown other) throws COMException {
        super(other);
    }
    public _DBMO(GUID ClsID) throws COMException {
        super(ClsID);
    }
    public void Close() throws COMException {
        invoke("Close");
    }
    public int Command(java.lang.String s) throws COMException {
        return ((java.lang.Integer) invokeN("Command", new Object[]{s}, 1)).intValue();
    }
    public int Count() throws COMException {
        return ((java.lang.Integer) invoke("Count")).intValue();
    }
    public java.lang.String Value(int rec, short x, short y) throws COMException {
        return (java.lang.String) invokeN("Value", new Object[]{new java.lang.Integer(rec), new java.lang.Short(x), new java.lang.Short(y)}, 3);
    }
    public boolean IsEndOfList() throws COMException {
        return ((java.lang.Boolean) invoke("IsEndOfList")).booleanValue();
    }
    public void SetHead() throws COMException {
        invoke("SetHead");
    }
    public void SetTail() throws COMException {
        invoke("SetTail");
    }
    public boolean SetPosition(int pos) throws COMException {
        return ((java.lang.Boolean) invokeN("SetPosition", new Object[]{new java.lang.Integer(pos)}, 1)).booleanValue();
    }
    public boolean Move(int Count) throws COMException {
        return ((java.lang.Boolean) invokeN("Move", new Object[]{new java.lang.Integer(Count)}, 1)).booleanValue();
    }
    public void Push(short pos, int Value) throws COMException {
        invokeN("Push", new Object[]{new java.lang.Short(pos), new java.lang.Integer(Value)}, 2);
    }
    public int Pop(short pos) throws COMException {
        return ((java.lang.Integer) invokeN("Pop", new Object[]{new java.lang.Short(pos)}, 1)).intValue();
    }
    public void Sort(short field, short num, int ascend) throws COMException {
        invokeN("Sort", new Object[]{new java.lang.Short(field), new java.lang.Short(num), new java.lang.Integer(ascend)}, 3);
    }
    public java.lang.String Sum(short FieldNum) throws COMException {
        return (java.lang.String) invokeN("Sum", new Object[]{new java.lang.Short(FieldNum)}, 1);
    }
    public void SaveList(short num) throws COMException {
        invokeN("SaveList", new Object[]{new java.lang.Short(num)}, 1);
    }
    public void RestoreList(short num) throws COMException {
        invokeN("RestoreList", new Object[]{new java.lang.Short(num)}, 1);
    }
    public void Clear() throws COMException {
        invoke("Clear");
    }
    public java.lang.String ValueC(short x, short y) throws COMException {
        return (java.lang.String) invokeN("ValueC", new Object[]{new java.lang.Short(x), new java.lang.Short(y)}, 2);
    }
    public boolean Installed() throws COMException {
        return ((java.lang.Boolean) invoke("Installed")).booleanValue();
    }
    public void SavePos(short x) throws COMException {
        invokeN("SavePos", new Object[]{new java.lang.Short(x)}, 1);
    }
    public void RestorePos(short x) throws COMException {
        invokeN("RestorePos", new Object[]{new java.lang.Short(x)}, 1);
    }
    public boolean IsHeadOfList() throws COMException {
        return ((java.lang.Boolean) invoke("IsHeadOfList")).booleanValue();
    }
    public void AddCell(short x, short y) throws COMException {
        invokeN("AddCell", new Object[]{new java.lang.Short(x), new java.lang.Short(y)}, 2);
    }
    public java.lang.String ReadTable() throws COMException {
        return (java.lang.String) invoke("ReadTable");
    }
    public void InitTable() throws COMException {
        invoke("InitTable");
    }
    public boolean IsEmpty() throws COMException {
        return ((java.lang.Boolean) invoke("IsEmpty")).booleanValue();
    }
    public void FreeList(short x) throws COMException {
        invokeN("FreeList", new Object[]{new java.lang.Short(x)}, 1);
    }
    public void Intercept(short x) throws COMException {
        invokeN("Intercept", new Object[]{new java.lang.Short(x)}, 1);
    }
    public void Resize() throws COMException {
        invoke("Resize");
    }
    public void PushS(short x, java.lang.String s) throws COMException {
        invokeN("PushS", new Object[]{new java.lang.Short(x), s}, 2);
    }
    public java.lang.String PopS(short x) throws COMException {
        return (java.lang.String) invokeN("PopS", new Object[]{new java.lang.Short(x)}, 1);
    }
    public void WriteFlag(short x, int y) throws COMException {
        invokeN("WriteFlag", new Object[]{new java.lang.Short(x), new java.lang.Integer(y)}, 2);
    }
    public int ReadFlag(short x) throws COMException {
        return ((java.lang.Integer) invokeN("ReadFlag", new Object[]{new java.lang.Short(x)}, 1)).intValue();
    }
    public double ValueCD(short x) throws COMException {
        return ((java.lang.Double) invokeN("ValueCD", new Object[]{new java.lang.Short(x)}, 1)).doubleValue();
    }
    public void QClose() throws COMException {
        invoke("QClose");
    }
    public java.lang.String QMessage(int x) throws COMException {
        return (java.lang.String) invokeN("QMessage", new Object[]{new java.lang.Integer(x)}, 1);
    }
    public int QCheck() throws COMException {
        return ((java.lang.Integer) invoke("QCheck")).intValue();
    }
    public boolean IsConnected() throws COMException {
        return ((java.lang.Boolean) invoke("IsConnected")).booleanValue();
    }
    public int GetID() throws COMException {
        return ((java.lang.Integer) invoke("GetID")).intValue();
    }
    public java.lang.String GetPath() throws COMException {
        return (java.lang.String) invoke("GetPath");
    }
    public void ResetFlags() throws COMException {
        invoke("ResetFlags");
    }
    public java.lang.String Double(double x) throws COMException {
        return (java.lang.String) invokeN("Double", new Object[]{new java.lang.Double(x)}, 1);
    }
    public java.lang.String Long(double x) throws COMException {
        return (java.lang.String) invokeN("Long", new Object[]{new java.lang.Double(x)}, 1);
    }
    public boolean BNOpen() throws COMException {
        return ((java.lang.Boolean) invoke("BNOpen")).booleanValue();
    }
    public void BNClose() throws COMException {
        invoke("BNClose");
    }
    public java.lang.String BNRead(java.lang.String bank, java.lang.String banknum) throws COMException {
        return (java.lang.String) invokeN("BNRead", new Object[]{bank, banknum}, 2);
    }
    public void BNWrite(java.lang.String bank, java.lang.String banknum, java.lang.String account) throws COMException {
        invokeN("BNWrite", new Object[]{bank, banknum, account}, 3);
    }
    public boolean QOpen(short num) throws COMException {
        return ((java.lang.Boolean) invokeN("QOpen", new Object[]{new java.lang.Short(num)}, 1)).booleanValue();
    }
    public void DeleteAccount(java.lang.String szName, java.lang.String szOp) throws COMException {
        invokeN("DeleteAccount", new Object[]{szName, szOp}, 2);
    }
    public void RemoveFromSavedList(short pos) throws COMException {
        invokeN("RemoveFromSavedList", new Object[]{new java.lang.Short(pos)}, 1);
    }
    public void DeleteFlag(java.lang.String s1) throws COMException {
        invokeN("DeleteFlag", new Object[]{s1}, 1);
    }
    public boolean CheckFlag(java.lang.String s1) throws COMException {
        return ((java.lang.Boolean) invokeN("CheckFlag", new Object[]{s1}, 1)).booleanValue();
    }
    public boolean AddTZ(java.lang.String szAccount, java.lang.String szDate, java.lang.String szSum, java.lang.String szTitle) throws COMException {
        return ((java.lang.Boolean) invokeN("AddTZ", new Object[]{szAccount, szDate, szSum, szTitle}, 4)).booleanValue();
    }
    public boolean DelTZ(java.lang.String szAccount, java.lang.String szDate, java.lang.String szSum, java.lang.String szTitle) throws COMException {
        return ((java.lang.Boolean) invokeN("DelTZ", new Object[]{szAccount, szDate, szSum, szTitle}, 4)).booleanValue();
    }
    public short Accounts(short nBank) throws COMException {
        return ((java.lang.Short) invokeN("Accounts", new Object[]{new java.lang.Short(nBank)}, 1)).shortValue();
    }
    public boolean AddNote(java.lang.String szDate, java.lang.String szS1, java.lang.String szS2, java.lang.String szS3, java.lang.String szS4, java.lang.String szDouble1, java.lang.String szDouble2) throws COMException {
        return ((java.lang.Boolean) invokeN("AddNote", new Object[]{szDate, szS1, szS2, szS3, szS4, szDouble1, szDouble2}, 7)).booleanValue();
    }
    public boolean DeleteNote(java.lang.String szDate, java.lang.String szS1, java.lang.String szS2, java.lang.String szS3, java.lang.String szS4, java.lang.String szDouble1, java.lang.String szDouble2) throws COMException {
        return ((java.lang.Boolean) invokeN("DeleteNote", new Object[]{szDate, szS1, szS2, szS3, szS4, szDouble1, szDouble2}, 7)).booleanValue();
    }
    public boolean AddUserTable(short nID, java.lang.String szData) throws COMException {
        return ((java.lang.Boolean) invokeN("AddUserTable", new Object[]{new java.lang.Short(nID), szData}, 2)).booleanValue();
    }
    public boolean DeleteUserTable(short nID, java.lang.String szData) throws COMException {
        return ((java.lang.Boolean) invokeN("DeleteUserTable", new Object[]{new java.lang.Short(nID), szData}, 2)).booleanValue();
    }
    public void CopyList(short pos) throws COMException {
        invokeN("CopyList", new Object[]{new java.lang.Short(pos)}, 1);
    }
    public void Add(short pos) throws COMException {
        invokeN("Add", new Object[]{new java.lang.Short(pos)}, 1);
    }
    public boolean SetDocument(DispatchPtr pDoc) throws COMException {
        return ((java.lang.Boolean) invokeN("SetDocument", new Object[]{pDoc}, 1)).booleanValue();
    }
    public void Update() throws COMException {
        invoke("Update");
    }
    public boolean QOpen2(short num) throws COMException {
        return ((java.lang.Boolean) invokeN("QOpen2", new Object[]{new java.lang.Short(num)}, 1)).booleanValue();
    }
    public void QClose2() throws COMException {
        invoke("QClose2");
    }
    public int QCheck2() throws COMException {
        return ((java.lang.Integer) invoke("QCheck2")).intValue();
    }
    public java.lang.String QMessage2(short nIndex) throws COMException {
        return (java.lang.String) invokeN("QMessage2", new Object[]{new java.lang.Short(nIndex)}, 1);
    }
    public void setValid(boolean newValid) throws COMException {
        put("Valid", new java.lang.Boolean(newValid));
    }
    public boolean getValid() throws COMException {
        return ((java.lang.Boolean) get("Valid")).booleanValue();
    }
}
